from django.conf.urls.defaults import *
from satchmo_store.urls import urlpatterns

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

#import django_cron
#django_cron.autodiscover()

urlpatterns = patterns('',
    # Index
    (r'^$', 'ocms.main.views.index'),
 
     #auth links
    (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}),
    (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'registration/logout.html'}),
    (r'^accounts/password_change/$', 'django.contrib.auth.views.password_change', {'post_change_redirect': '/'}),
    (r'^accounts/password_reset/$', 'django.contrib.auth.views.password_reset', {'post_reset_redirect': '/'}),
    
    #registration system
    (r'^accounts/', include('ocms.registration.backends.default.urls')),
    
    #user profile stuff
    (r'^accounts/profile/', 'ocms.accounts.views.profile'),

    # Uncomment the next line to enable the admin:
	(r'^admin/', include(admin.site.urls)),
	
	#include the events urls
	(r'^events/', include('ocms.eventmanager.urls')),
    
    #wire this up for using admin widgets
    (r'^my_admin/jsi18n', 'django.views.i18n.javascript_catalog'),
    
    #comments framework
    (r'^comments/', include('django.contrib.comments.urls')),
    
     #comments framework
    (r'^merch/', include('satchmo_store.urls')),     
)
